﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace RN.ERP.Entity
{
    [DataContract]
    public class UserInfo
    {
        private string _message;

        /// <summary>
        /// 返回消息。
        /// </summary>
        [DataMember]
        public string Message
        {
            get { return _message; }
            set { _message = value; }
        }

        private bool _result;

        /// <summary>
        /// 返回结果。
        /// </summary>
        [DataMember]
        public bool Result
        {
            get { return _result; }
            set { _result = value; }
        }

        private string _userGuid;

        [DataMember]
        public string UserGuid
        {
            get { return _userGuid; }
            set { _userGuid = value; }
        }

        private int _userID;

        [DataMember]
        public int UserID
        {
            get { return _userID; }
            set { _userID = value; }
        }

        private string _userName;

        /// <summary>
        /// 用户名称。
        /// </summary>
        [DataMember]
        public string UserName
        {
            get { return _userName; }
            set { _userName = value; }
        }

        private string _name;

        /// <summary>
        /// 企业或个人名称。
        /// </summary>
        [DataMember]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private string _password;
        /// <summary>
        /// 密码
        /// </summary>
        [DataMember]
        public string Password
        {
            get { return _password; }
            set { _password = value; }
        }
        private string _dogId;

        /// <summary>
        /// 狗号。
        /// </summary>
        [DataMember]
        public string DogId
        {
            get { return _dogId; }
            set { _dogId = value; }
        }

        private string _funcPerm;

        /// <summary>
        /// 权限字符串。
        /// </summary>
        [DataMember]
        public string FuncPerm
        {
            get { return _funcPerm; }
            set { _funcPerm = value; }
        }

        private bool _isPrivateKey;

        /// <summary>
        /// 是否是个人Key。
        /// </summary>
        [DataMember]
        public bool IsPrivateKey
        {
            get { return _isPrivateKey; }
            set { _isPrivateKey = value; }
        }

        private string _areaCode;

        /// <summary>
        /// 用户注册地。
        /// </summary>
        [DataMember]
        public string AreaCode
        {
            get { return _areaCode; }
            set { _areaCode = value; }
        }

        private string _roleId;

        /// <summary>
        /// 角色编号。
        /// </summary>
        [DataMember]
        public string RoleId
        {
            get { return _roleId; }
            set { _roleId = value; }
        }

        private string _roleType;

        /// <summary>
        /// 角色类型。
        /// </summary>
        [DataMember]
        public string RoleType
        {
            get { return _roleType; }
            set { _roleType = value; }
        }

        private string _roleTypeTitle;

        /// <summary>
        /// 角色类型名称。
        /// </summary>
        [DataMember]
        public string RoleTypeTitle
        {
            get { return _roleTypeTitle; }
            set { _roleTypeTitle = value; }
        }

        private string _UserTel;

        /// <summary>
        /// 电话
        /// </summary>
        [DataMember]
        public string UserTel
        {
            get { return _UserTel; }
            set { _UserTel = value; }
        }

        private string _areaCode2;

        [DataMember]
        public string AreaCode2
        {
            get { return _areaCode2; }
            set { _areaCode2 = value; }
        }

        private bool _isManager = false;
        /// <summary>
        /// 是否主管
        /// </summary>
        [DataMember]
        public bool IsManager
        {
            get { return _isManager; }
            set { _isManager = value; }
        }
    }
}
